package cn.lyd.system.domain;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import cn.lyd.base.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 *菜单管理
 * </p>
 *
 * @author lyd
 * @since 2023-01-03
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Menu extends BaseDomain{

   //菜单名称
    private String name;
   //vue组件 包名/组件名
    private String component;
   //vue组件路径
    private String url;
   //菜单图标
    private String icon;
   //菜单索引
    private Integer index;
   //父级菜单
    private Long parent_id;
   //菜单简介
    private String intro;
   //菜单状态
    private Integer state;


    //子菜单  最后一级没有数据就不显示
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Menu> children =new ArrayList<>();


}
